package io.practiceAll;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class Print {
    public static void main(String[] args) throws IOException{
      /*  PrintWriter printWriter = new PrintWriter("tt.txt");
        printWriter.println("yjpyjp");
        printWriter.close();*/

        FileInputStream fileInputStream = new FileInputStream("tt.txt");
        InputStreamReader inputStreamReader = new InputStreamReader(fileInputStream, StandardCharsets.UTF_8);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        String line;
        while ((line=bufferedReader.readLine())!=null){
            System.out.println(line);
        }
         bufferedReader.close();
    }
}
